package com.kehutong.message.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import com.kehutong.common.enums.MessageBusinessEnum;
import com.kehutong.common.enums.TemplateType;

import java.sql.Timestamp;

/**
 * <pre>模板设置</pre>
 * 
 * 公众号 消息模板配置,短信模板
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2020年5月21日 上午9:35:38
 */
@Table("t_auth_template")
public class TemplateSetting extends Entity {

    private static final long serialVersionUID = -7467933205836254273L;

    protected TemplateSetting(String id) {
        super(id);
    }

    @Column(comment = "模板名称")
    private String name;
    
    @Column(length = 64, comment = "微信公众号提供的消息模板id")
    private String templateNo;

    @Column(comment = "业务模板类型")
    private MessageBusinessEnum businessType;

    @Column(comment = "模板类型")
    private TemplateType templateType;

    @Column(comment = "公众号appId")
    private String appId;

    @Column(comment = "小程序appId")
    private String miniAppId;

    @Column(comment = "小程序路径", length = 128)
    private String miniPagePath;

    @Column(comment="逻辑删除")
    private boolean deleted;

    public MessageBusinessEnum getBusinessType() {
        return businessType;
    }

    public void setBusinessType(MessageBusinessEnum businessType) {
        this.businessType = businessType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

	public String getTemplateNo() {
		return templateNo;
	}

	public void setTemplateNo(String templateNo) {
		this.templateNo = templateNo;
	}

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public TemplateType getTemplateType() {
        return templateType;
    }

    public void setTemplateType(TemplateType templateType) {
        this.templateType = templateType;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMiniAppId() {
        return miniAppId;
    }

    public void setMiniAppId(String miniAppId) {
        this.miniAppId = miniAppId;
    }

    public String getMiniPagePath() {
        return miniPagePath;
    }

    public void setMiniPagePath(String miniPagePath) {
        this.miniPagePath = miniPagePath;
    }

}
